package com.itheima.service;

import com.itheima.commo.PageResult;
import com.itheima.commo.R;
import com.itheima.entity.Employee;
import javax.servlet.http.HttpSession;


// 员工业务处理层接口
public interface EmployeeService {

    //后台登录功能
    R<Employee> login(Employee employee, HttpSession httpSession);


    //退出功能
    void logout(HttpSession httpSession);

    //新增员工
    int save(Employee employee, Long id);

    //分页员工
    PageResult<Employee> findPage(Long page, Long pageSize, String name);

    //更新员工
    int update(Employee employee, Long id);

    // 根据员工id查询员工信息
    Employee findById(Long id);
}
